//---------------------------------------------------------------------------
#ifndef InputH
#define InputH
//---------------------------------------------------------------------------
#include <vcl\Classes.hpp>
#include <vcl\Controls.hpp>
#include <vcl\StdCtrls.hpp>
#include <vcl\Forms.hpp>
//---------------------------------------------------------------------------
#include "Pattern.h"
#include "Recognize.h"
#include <vcl\ExtCtrls.hpp>
#include <vcl\MPlayer.hpp>

class TInputForm : public TForm
{
__published:	// IDE-managed Components
	TTimer *Timer1;
	TEdit *Edit1;
	void __fastcall FormMouseDown(TObject *Sender, TMouseButton Button,
	TShiftState Shift, int X, int Y);
	void __fastcall FormMouseMove(TObject *Sender, TShiftState Shift, int X, int Y);
	void __fastcall FormMouseUp(TObject *Sender, TMouseButton Button,
	TShiftState Shift, int X, int Y);

	void __fastcall Timer1Timer(TObject *Sender);
	
private:	// User declarations
	bool	bPressed,bEndRecognize;
    int		ox,oy,result;
    TIPattern	pattern;
    TRecognize	recognize;
    void	ClearScreen(void);
	int		counter;
    bool	bInputed;
public:		// User declarations
	__fastcall TInputForm(TComponent* Owner);
    int	__fastcall	GetResult();
};
//---------------------------------------------------------------------------
extern TInputForm *InputForm;
//---------------------------------------------------------------------------
#endif
